package com.von.nhcf.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class NhcfWebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/to/protocol/page").setViewName("project_protocol");
        registry.addViewController("/to/launch/page").setViewName("project_launch");
        registry.addViewController("/to/return/info/page").setViewName("project_return");
        registry.addViewController("/to/confirm/page").setViewName("project_confirm");
        registry.addViewController("/to/success/page").setViewName("project_success");
    }
}
